package com.net.oil.util;

/**
 * 作者：lch
 * 时间：2018/5/12 0012:下午 13:56
 * 邮箱：245850413@qq.com
 * 说明：加载html片段
 */

public class WebViewUtil {
    public static String getHtmlData(String bodyHTML) {
        String head = "<head>" +
                "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=no\"> " +
                "<style>img{max-width: 100%; width:auto; height:auto;}</style>" +
                "</head>";
        return "<html>" + head + "<body>" + bodyHTML + "</body></html>";
    }
}
